MYSQL_CMD="{{ mysql_base_dir }}/bin/mysql"
MYSQLBINLOG_CMD="{{ mysql_base_dir }}/bin/mysqlbinlog"
MYSQLADMIN_CMD="{{ mysql_base_dir }}/bin/mysqladmin"
LOCAL_HOST="{{ master_ip }}"
REMOTE_HOST="{{ slave_ip }}"
WRITE_VIP="{{ vip }}"
MYSQL_PORT="{{ mysql_port }}"
MYSQL_USER="{{ mysql_kha_user }}"
MYSQL_PASS="{{ mysql_kha_password }}"
{% if sock_type == 1 %}
SOCKET="{{ mysql_data_dir_base }}/data/{{ mysql_port }}/mysql.sock"
{% elif sock_type == 2 %}
SOCKET="/tmp/mysql{{ mysql_port }}.sock"
{% elif sock_type == 3 %}
SOCKET="{{ mysql_data_dir_base }}/run/mysql{{ mysql_port }}.sock"
{% endif %}

CHECK_TIME=5
CHECK_COUNT=3
CHECK_SQL="select CONCAT('COUNTER:',count(*)) from mysql.user"
MYSQL_PROTOCOL=socket
LOCAL_BINLOG="{{ mysql_data_dir_base }}/log/binlog/{{ mysql_port }}/mysql-bin"

sqlpath=/tmp/{{ mysql_kha_user }}
SLAVE_USR={{ mysql_kha_user }}
SLAVE_PWD={{ mysql_kha_password }}
SLAVE_PORT={{ mysql_port }}
PINGDOWN_C=5
PINGDOWN_TOTAL=3
REP_USER={{ mysql_rple_user }
REP_PWD={{ mysql_rple_password }}
REP_PORT={{ mysql_port }}

LOGFILE="/etc/keepalived/logs/alert_myha.log"
